package com.geovis.emergency.spd.biz.filing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.geovis.emergency.spd.entity.filing.entity.FilingSystemDept;
import com.geovis.emergency.spd.entity.filing.entity.FilingSystemFile;
import com.geovis.emergency.spd.entity.system.entity.SystemDept;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 附件表 服务类
 * </p>
 *
 * @author 曾德实
 * @since 2020-09-01
 */
public interface IFilingSystemDeptService extends IService<FilingSystemDept> {
    /**
     * 根据预案信息，生成并保存预案备案的部门信息
     * @param systemDept
     */
    void saveFromSpd(SystemDept systemDept);

    /**
     * 根据预案信息，更新预案备案的部门信息
     * @param systemDept
     */
    void updateFromSpd(SystemDept systemDept,String oldDeptName);

    /**
     * 根据预案信息，删除预案备案的部门信息
     */
    void removeFromSpd(List<SystemDept> systemDept);

    boolean checkFilingRecord(List<SystemDept> systemDepts);

}
